package vcp.models;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.Observable;

import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Orders;
import db.parking.beans.Subscriber;

public class SubscriptionModelFull  extends AbstractModel{
	
	public void AddFullSubscriber(Subscriber bean) {
							
			//SimpleClient client = null; 
			//client = SimpleClient.getInstance();
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);
			
			Message msg = new Message(bean,"AddFullSubscriber");
			 try {
					client.sendToServer(msg);
					//Thread.sleep(500);
					// msg = client.getReturnMsg();
			 }
			 catch (Exception ex)
			    {
				 System.out.println(ex.toString()+" Subscription->AddFullSubscriber");
			    }
			 
		//setChanged();
		//notifyObservers(msg);		
	}
		

}
